function copyMe(obj, needToast = true) {
    let str = ""
    if (typeof obj === typeof "") {
        str = obj
    } else {
        str = obj.innerHTML
    }

    let input = document.createElement('input');
    input.style = "opacity:0;float:left;";
    document.body.appendChild(input);
    input.setAttribute('value', str);
    input.select();
    if (document.execCommand('copy')) {
        document.execCommand('copy');
    }
    // console.log("ok", str,input.value)
    document.body.removeChild(input);


    if (needToast) {
        let div = document.createElement('div');
        div.innerHTML = "已复制"
        div.classList.add("move")
        document.body.appendChild(div)
        setTimeout(() => {
            document.body.removeChild(div)
        }, 2500);
    }
}